<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Navigation:  Pulldown Menu (Automatic in Frames)</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Navigation">
<META NAME="description" CONTENT="Here's the Automatic Pulldown menu, but in Frames!  Have the link open in a different frame of your site!  Neat!">


<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.main.location.href=(form.dest.options[myindex].value);
}
// End -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /navigation/"><font color="#FF0000">Navigation</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Pulldown Menu (Automatic in Frames)</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE=" helvetica,arial,geneva">
<br>
<br>
<!-- Description --><!--content_start-->

Here's the Automatic Pulldown menu, but in Frames!  Have the link open in a different frame of your site!  Neat!<br><hr>
</td></tr>
</table>
<!--  Demonstration -->
<CENTER><a href="menu-auto-frames-demo.html" /navigation/menu-auto-frames-demo.html">Click here for a demonstration of the Pulldown Menu (Automatic in Frames)</A></CENTER>
<P>
<BR>
<P>
<a name="source">
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Navigation:  Pulldown Menu (Automatic in Frames) Frameset</b>
<p>Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s).  The script is yours!<br><br></font></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  0.51 KB  " size="32">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

<!-- TWO STEPS TO INSTALL PULLDOWN MENU (FRAMES):

   1.  Put the code into the FRAMESET of your frames HTML document
   2.  Be sure to give each frame a name:  name="left"  etc... -->

<!-- STEP ONE: Copy this code into the FRAMESET of your HTML document  -->

<FRAMESET cols="200,*">
<frame name="left" src="javascript:if(confirm('http://javascript.internet.com/navigation/your_left_page.html  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://javascript.internet.com/navigation/your_left_page.html'" /navigation/your_left_page.html">
<frame name="right" src="javascript:if(confirm('http://javascript.internet.com/navigation/your_right_page.html  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://javascript.internet.com/navigation/your_right_page.html'" /navigation/your_right_page.html">
</FRAMESET>

<!-- STEP TWO:  Be sure to give each frame a name:  name="left"  etc... -->

<!-- Script Size:  0.51 KB  -->
</textarea><br></td></tr>



<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Navigation:  Pulldown Menu (Automatic Frames)</b>
<p>Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s).  The script is yours!<br><br></font></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy">

<DIV align="center">
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  1.37 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- THREE STEPS TO INSTALL PULLDOWN MENU (FRAMES):

   1.  Put this code in the HEAD of your_left_page.html
   2.  Add the last code into the BODY of your_left_page.html
   3.  Put whatever you want in your_right_page.html --&gt;

&lt;!-- STEP ONE: Copy this into the HEAD of your_left_page.html document  --&gt;

&lt;HEAD&gt;

&lt;SCRIPT LANGUAGE="JavaScript"&gt;

&lt;! &gt;
&lt;! &gt;

&lt;!-- Begin
function leapto(form) {
var myindex=form.dest.selectedIndex
parent.right.location.href=(form.dest.options[myindex].value);
// You can output to ANY frame using:  parent.[framename].location.href
}
// End --&gt;
&lt;/SCRIPT&gt;

&lt;!-- STEP TWO: Put this code into the BODY of your HTML document  --&gt;

&lt;BODY&gt;

&lt;CENTER&gt;
&lt;FORM NAME="myform"&gt;
&lt;SELECT NAME="dest" SIZE=1 onChange="leapto(this.form)"&gt;
&lt;OPTION SELECTED VALUE="http://javascriptsource.com"&gt;JavaScript Source Code 3000
&lt;OPTION VALUE="http://buttons.javascriptsource.com"&gt;Buttons
&lt;OPTION VALUE="http://games.javascriptsource.com"&gt;Games
&lt;OPTION VALUE="http://links.javascriptsource.com"&gt;Links
&lt;OPTION VALUE="http://navigation.javascriptsource.com"&gt;Navigation
&lt;OPTION VALUE="http://user-details.javascriptsource.com"&gt;User Details
&lt;/SELECT&gt;
&lt;/FORM&gt;
&lt;/CENTER&gt;

&lt;!-- STEP THREE: Put anything in your_right_page.html  --&gt;

 

&lt;!-- Script Size:  1.37 KB  --&gt;
</textarea><br><font FACE="helvetica,arial,geneva"></font></td></tr>

</table>
</form>
</FONT>
</CENTER>


</center>
</body></html>